﻿<%@ Page Language="C#" MasterPageFile="~/GoWLL.master" AutoEventWireup="true" CodeFile="CommunityOrder.aspx.cs" Inherits="CommunityOrder" Title="订单管理 - 我的社区 - G维网" %>
<%@ Register Src="CommunityMenu.ascx" TagName="CommunityMenu" TagPrefix="Menu" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceMenu" Runat="Server">
    <Menu:CommunityMenu ID="CommunityMenu1" runat="server" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceMainText" Runat="Server">
    <div id="contenttext">
        <form id="Form1" runat=server>
            <div class="bodytext" style="padding-left:24px;" align="justify">
                <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:GoWLLConnectionString %>"></asp:SqlDataSource>
		        <br />
                <asp:Repeater ID="Repeater1" runat="server" DataSourceID="SqlDataSource1">
                    <ItemTemplate>
                        <strong>您的社区余额：<asp:Label ID="RemainMoneyLabel" runat="server" Text='<%# Bind("RemainMoney", "{0:C}") %>'></asp:Label>元<br />
                        社区积分：<asp:Label ID="Label2" runat="server" Text='<%# Bind("Cent") %>'></asp:Label><br /><a href="CommunityPay.aspx">在线转账</a></strong>
                    </ItemTemplate>
                </asp:Repeater>
            </div>
	        <div class="panel" align="justify">
		        <span class="orangetitle">我的社区订单</span>
		        <span class="bodytext"><br />
                    <asp:SqlDataSource ID="SqlDataSource2" runat="server" ConnectionString="<%$ ConnectionStrings:GoWLLConnectionString %>">
                    </asp:SqlDataSource>
		         </span>
                <asp:GridView ID="GridView1" runat="server" EmptyDataText="您还没有将任何社区加入购物车，或者你的所有订单都已经支付。" Width="400px" AutoGenerateColumns="False" DataSourceID="SqlDataSource2" BackColor="#F4F4F4" BorderColor="#CCCCCC" BorderStyle="Solid" BorderWidth="2px" CellPadding="3" Font-Size="13px">
                    <RowStyle ForeColor="#000066" />
                    <Columns>
                        <asp:BoundField DataField="Title" HeaderText="社区名称" >
                            <ItemStyle HorizontalAlign="Center" />
                        </asp:BoundField>
                        <asp:BoundField DataField="Price" HeaderText="价格(元)" >
                            <ItemStyle HorizontalAlign="Center" />
                        </asp:BoundField>
                        <asp:BoundField DataField="StartDate" HeaderText="预定订日期" />
                        <asp:TemplateField HeaderText="操作">
                            <ItemTemplate>
                                <asp:LinkButton ID="LinkButton1" runat="server" Text='取消' CommandName='<%# Eval("ID") %>' OnClick="LinkButton1_Click" OnInit="LinkButton1_Init"></asp:LinkButton>
                                <asp:LinkButton ID="LinkButton2" runat="server" Text='支付' CommandName='<%# Eval("ID") %>' OnInit="LinkButton2_Init" OnClick="LinkButton2_Click"></asp:LinkButton>
                                <asp:LinkButton ID="LinkButton3" runat="server" Text='积分支付' CommandName='<%# Eval("ID") %>' OnInit="LinkButton3_Init" OnClick="LinkButton3_Click"></asp:LinkButton>
                            </ItemTemplate>
                            <ItemStyle HorizontalAlign="Right" />
                        </asp:TemplateField>
                    </Columns>
                    <HeaderStyle BackColor="#889966" Font-Bold="True" ForeColor="White" HorizontalAlign="Center" />
                </asp:GridView>
	        </div>
	    </form>
	</div>
</asp:Content>

